﻿using aDream.Boundary.Customer;
using aDream.Boundary.Staff;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace aDream
{
    public partial class MainMenu : Form
    {
        private RealEstateAgency rea = new RealEstateAgency();
        public MainMenu()
        {
            InitializeComponent();
            Thread.CurrentThread.Name = "Main Menu";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            StaffMenu staff = new StaffMenu(rea);
            staff.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            CustomerMenu customer = new CustomerMenu(rea);
            customer.Show();
        }

    }
}
